package com.ebocy.hammer.game.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CPlayerRole extends AbstractS2CMessage {
	private String roleId;

	public S2CPlayerRole(long roleId) {
		this.roleId = String.valueOf(roleId);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.GAME_CHANGE_ROLE;
	}

	@Override
	protected void writeMessage() {
		writeString(roleId);
	}

}
